﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Address.ascx.cs" Inherits="NetDon.OA.Portal.Controls.Address" %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" %>
<%@ Register TagPrefix="uc1" TagName="RequiredMark" Src="RequiredMark.ascx" %>
<NetDon:FormPanel runat="server" ID="fpAddress" RepeatColumns="2">
    <Items>
        <NetDon:FormItem HeaderText="省份">
            <ContentTemplate>
                <asp:DropDownList ID="ddlProvince" runat="server" AppendDataBoundItems="true" DataTextField="Name"
                    DataValueField="Code" Width="80px">
                </asp:DropDownList>
                <asp:CascadingDropDown ID="ddlProvince_CascadingDropDown" runat="server" TargetControlID="ddlProvince"
                    ServicePath="~/CascadingService.asmx" ServiceMethod="GetProvinceContents" Category="Province"
                    PromptText="请选择省份" LoadingText="省份加载中...">
                </asp:CascadingDropDown>
                <uc1:RequiredMark ID="markProvince" runat="server" />
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="城市">
            <ContentTemplate>
                <asp:DropDownList ID="ddlCity" runat="server" Width="80px">
                </asp:DropDownList>
                <asp:CascadingDropDown ID="ddlCity_CascadingDropDown" runat="server" ParentControlID="ddlProvince"
                    ServicePath="~/CascadingService.asmx" ServiceMethod="GetCityContents" Category="City"
                    TargetControlID="ddlCity" PromptText="请选择城市" LoadingText="城市加载中...">
                </asp:CascadingDropDown>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="区县">
            <ContentTemplate>
                <asp:DropDownList ID="ddlArea" runat="server" Width="80px">
                </asp:DropDownList>
                <asp:CascadingDropDown ID="ddlArea_CascadingDropDown" runat="server" Category="Area"
                    LoadingText="区县加载中..." ParentControlID="ddlCity" PromptText="请选择区县" ServiceMethod="GetAreaContents"
                    ServicePath="~/CascadingService.asmx" TargetControlID="ddlArea">
                </asp:CascadingDropDown>
            </ContentTemplate>
        </NetDon:FormItem>
    </Items>
</NetDon:FormPanel>
 

